import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
    path: '/', name: 'index', component: () => import('../views/index.vue')
}, {
    path: '/history', name: 'history', component: () => import('../views/history/history.vue')
}, {
    path: '/history/abnormal', name: 'abnormal_history', component: () => import('../views/history/abnormalhistory.vue')
}]
const router = new VueRouter({
    mode: "hash", routes
})

export default router